import request from '@/http/request'
import reponse from '@/http/response'
import { da } from 'element-plus/es/locales.mjs'

export const departlist = async(data: any) => {
    return reponse({
        url: '/api/DepartMentHandle',
        method: 'get',
        params:data
    })
}
export const departAdd = async(data: any) => {
    return request({
        url: '/api/Department/Add',
        method: 'post',
        data:data
    })
}
export const selectUser =async() => {
    return reponse({
        url: '/api/DepartMentSleectUser',
        method: 'get',
    })
}
export const selectDeptMenu = async() => {
    return reponse({
        url: '/api/DepartMentSeleDeptMenu',
        method: 'get',
    })
}
export const delpartmentid = async(data: any) => {
    return request({
        url: '/api/Department/Del?DepartId='+data,
        method: 'put',
        data:data
    })
}
export const updatedepartmet=async(data: any) => {
    return request({
        url: '/api/Department/Update',
        method: 'put',
        data: data
     
    })
}


export const updatepartmentstatus=async(departId: any,status: any) => {
    return request({
        url: `api/Department/UpdateStatus?DepartId=${departId}&Status=${status}`,
        method: 'put',
        
    })
}
